package com.sp2.dev.test.generic;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-2-12
 * Time: 下午4:28
 * To change this template use File | Settings | File Templates.
 */
//泛型  
public class Gen<T> {
    private T obj;

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public Gen(T obj) {
        this.obj = obj;
    }

    public void showType(){
        System.out.println("obj的实际类型是"+obj.getClass().getName());
    }
}
